import java.util.Arrays;

public class Solution {
    public int findKthLargest(int[] nums, int k) {
        Arrays.sort(nums);
        return nums[nums.length - k];
    }

    public static void main(String[] args) {
        Solution solution = new Solution();
        int[] nums = {3,2,3,1,2,4,5,5,6};
        int k = 4;
        System.out.println(solution.findKthLargest(nums,k));
    }
}
